Method and apparatus for video coding

ABSTRACT

In uniform superposition of two predictions toward a weighted superposition, such as in coding B frames, weighting is based on reliability of a reference picture used for determination of the prediction. Since there is a relationship between the reliability and the respective quantization parameter, coupling to the quantization parameter that is also known in the receiver also can be effected advantageously.

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application is based on and hereby claims priority to German Application No. 102 254 34.6 filed on Jun. 7, 2002, the contents of which are hereby incorporated by reference.

BACKGROUND OF THE INVENTION

[0002] 1. Field of the Invention

[0003] The invention relates to a method and an apparatus for video coding, in which a predicted picture is produced by averaging reference pictures.

[0004] 2. Description of the Related Art

[0005] Digital video data are generally compressed for storage or transmission, to significantly reduce the enormous volume of data. The compression is effected both by eliminating the signal redundancy contained in the video data and by eliminating the irrelevant signal parts that are imperceptible to the human eye. This is generally achieved by a hybrid coding method in which the picture to be coded is firstly predicted temporally and the remaining prediction error is subsequently transformed into the frequency domain, for example by a discrete cosine transformation, and is quantized there and coded by a variable length code. The motion information and the quantized spectral coefficients are finally transmitted.

[0006] The performance of the hybrid coding method depends very significantly on the quality of the temporal prediction. The better this prediction of the next picture information to be transmitted, the smaller the prediction error that remains after the prediction, and the lower the data rate that has to be subsequently expended for the coding of this error. A significant task in the compression of video data is obtaining the most exact prediction possible of the picture to be coded from the picture information that has already been transmitted beforehand.

[0007] The prediction of a picture has been effected heretofore by firstly dividing the picture into regular portions, typically square blocks with a size of 8×8 or 16×16 pixels, and subsequently determining, for each of these picture blocks, a prediction from the picture information already known in the receiver, by motion compensation. In this context, it is possible to distinguish between two basic cases of prediction:

[0008] unidirectional prediction: in this case, the motion compensation is effected exclusively on the basis of the previously transmitted picture and leads to so-called “P frames”.

[0009] bi-directional prediction: the picture is predicted by superposition of two pictures, of which one is temporally preceding and another is temporally succeeding and which leads to so-called “B frames”. It should be taken into consideration here that both reference pictures have already been transmitted.

[0010] In the last-mentioned case, the actual prediction value must be calculated by averaging from both reference pictures. In the previously standardized method MPEG-1 to MPEG-4 or H.263, an equal-weight averaging is always carried out for this purpose, that is to say that the two possible predictions are added and the resulting sum is then halved.

SUMMARY OF THE INVENTION

[0011] An object of the invention is to provide video coding in which the total data rate required for the coding of the picture becomes as small as possible.

BRIEF DESCRIPTION OF THE DRAWINGS

[0012] These and other objects and advantages of the present invention will become more apparent and more readily appreciated from the following description of the preferred embodiments, taken in conjunction with the accompanying drawings of which:

[0013]FIG. 1 is time diagram of a picture sequence illustrating prediction according to the invention;

[0014]FIG. 2 a plan view illustrating two successive pictures for explaining a superposition of blocks that occurs during the prediction; and

[0015]FIG. 3 is a block diagram for elucidating the apparatus according to the invention.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENT

[0016] Reference will now be made in detail to the preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.

[0017] The invention essentially resides in a generalization of the uniform superposition—known from the coding of B frames—of two predictions toward a weighted superposition. In this case, the weighting is coupled e.g. to the reliability of the reference picture used for the determination of the prediction. Since there is a relationship between the reliability and the respective quantization parameter, coupling to the quantization parameter that is also known in the receiver can advantageously also be effected.

[0018]FIG. 1 illustrates a picture sequence . . . n−2, n−1, n, n+1, n+2 . . . in a time t. In this case, the picture n+1 is e.g. a pure intraframe-coded picture, that is to say a so-called I frame, and the picture n−1 is, for example, a predictively coded reference picture, that is to say a so-called P frame. Situated between the two pictures n−1 and n+1 is a picture generated by bi-directional prediction, that is to say a so-called B frame. For the case where two or more possible predictions are available, here the weights g1, g2, g3, g4 . . . are not necessarily chosen to be identical, but rather are determined in such a way that the best possible overall prediction is effected. This means that a uniform weighting for two reference pictures is not necessarily performed, rather, as indicated in the block diagram of FIG. 3, each of the for example two reference pictures is multiplied by a weighting factor g1 or g2, respectively, and the two products are added. The result is then divided by the sum of the two weighting factors g1 and g2.

[0019] In the simplest case, this can be achieved by a pure intraframe-coded picture n+1 obtaining a higher weight g2 than a predictively coded reference picture n−1 with the weight g1, since intraframe-coded pictures generally have a significantly better quality than predicted pictures.

[0020] By way of example, the weight of I frames may be g2=⅔ and the weight of P frames g1=⅓. In this case, these weighting factors must be transmitted from the transmitter to the receiver as additional page information. However, since the quality of the resulting overall prediction is significantly improved by the adaptation with variable weighting factors, the disadvantage of the page information that is to be additionally transmitted is more than compensated for by the saving in the transmission of the prediction error.

[0021] In order to avoid the transmission of the weighting factors and at the same time also to reduce the complexity in the case of a free choice of factors at the transmitter end, the determination of the weight factors can also be further formalized. An advantageous refinement is the fact that the factors are inversely coupled to the level width of the quantizers used for the coding of the reference pictures. In concrete terms, this means that a block from a reference picture obtains a high weighting when this reference block has been coded with a low quantization level, that is to say a high quantization accuracy, and vice versa. The justification for this coupling is grounded in the fact that a large quantization level width or a low quantization accuracy is also associated with a correspondingly poor picture quality and thus a low reliability as reference picture. Since the quantization levels used for each block are transmitted anyway and are thus known to the receiver, it is possible to directly calculate the weighting factors for the superposition of the two individual predictions.

[0022]FIG. 2 illustrates a block b within the picture n and also four adjacent blocks b1 . . . b4 in the predecessor picture n−1. This makes it clear that the block b used for the prediction generally simultaneously superposes a plurality of coded individual blocks in the reference picture n−1 and further definition of the quantization level to be used is necessary, since, in the general case, the blocks b1 . . . b4 may each have different quantization levels. In this case, the weighting factor g1 can be determined from averaging from the quantization levels for the blocks b1 . . . b4 or, for example, by ascertaining the largest quantization level of the quantizers for these blocks.

[0023] During the prediction with the aid of weighted averaging, use is made of at least two reference pictures whose temporal position in the picture sequence is totally arbitrary, in principle, in which case either at least one reference picture can precede and at least one reference picture can temporally succeed the predicted picture n or, alternatively, either all reference pictures can temporally precede or all reference pictures can temporally succeed the predicted picture.

[0024] The invention has been described in detail with particular reference to preferred embodiments thereof and examples, but it will be understood that variations and modifications can be effected within the spirit and scope of the invention. 

What is claimed is:
 1. A method for video coding, comprising: assigning different weights to at least two reference pictures situated in an arbitrary temporal position before or after at least one predicted picture of a picture sequence; and calculating the at least one predicted picture by weighted averaging of the at least two reference pictures.
 2. The method as claimed in claim 1, wherein said assigning comprises selecting the different weights based on respective reliability of the reference pictures for prediction.
 3. The method as claimed in claim 2, further comprising transmitting weighting factors as additional page information.
 4. The method as claimed in claim 2, further comprising dividing the at least one predicted picture into at least two blocks, wherein said assigning includes forming weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 5. The method as claimed in claim 4, wherein a block used for prediction simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and wherein said assigning includes forming a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 6. The method as claimed in claim 1, wherein said assigning weights a purely intraframe coded reference picture more highly than a predictively coded reference picture.
 7. The method as claimed in claim 6, further comprising transmitting weighting factors as additional page information.
 8. The method as claimed in claim 6, further comprising dividing the at least one predicted picture into at least two blocks, wherein said assigning includes forming weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 9. The method as claimed in claim 8, wherein a block used for prediction simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and wherein said assigning includes forming a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 10. The method as claimed in claim 1, further comprising transmitting weighting factors as additional page information.
 11. The method as claimed in claim 1, further comprising dividing the at least one predicted picture into at least two blocks, wherein said assigning includes forming weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 12. The method as claimed in claim 11, wherein a block used for prediction simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and wherein said assigning includes forming a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 13. At least one computer readable medium storing at least one program embodying a method for video coding, said method comprising: assigning different weights to at least two reference pictures situated in an arbitrary temporal position before or after at least one predicted picture of a picture sequence; and calculating the at least one predicted picture by weighted averaging of the at least two reference pictures.
 14. The method as claimed in claim 13, wherein said assigning comprises selecting the different weights based on respective reliability of the reference pictures for prediction.
 15. The method as claimed in claim 14, further comprising transmitting weighting factors as additional page information.
 16. The method as claimed in claim 14, further comprising dividing the at least one predicted picture into at least two blocks, wherein said assigning includes forming weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 17. The method as claimed in claim 16, wherein a block used for prediction simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and wherein said assigning includes forming a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 18. The method as claimed in claim 13, wherein said assigning weights a purely intraframe coded reference picture more highly than a predictively coded reference picture.
 19. The method as claimed in claim 18, further comprising transmitting weighting factors as additional page information.
 20. The method as claimed in claim 18, further comprising dividing the at least one predicted picture into at least two blocks, wherein said assigning includes forming weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 21. The method as claimed in claim 20, wherein a block used for prediction simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and wherein said assigning includes forming a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 22. The method as claimed in claim 13, further comprising transmitting weighting factors as additional page information.
 23. The method as claimed in claim 13, further comprising dividing the at least one predicted picture into at least two blocks, wherein said assigning includes forming weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 24. The method as claimed in claim 23, wherein a block used for prediction simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and wherein said assigning includes forming a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 25. An apparatus for video coding, comprising: a device to calculate at least one predicted picture of a picture sequence by weighted averaging of at least two reference pictures situated in an arbitrary temporal position before or after the at least one predicted picture and assigned different weights.
 26. The apparatus as claimed in claim 25, wherein said device selects the different weights based on respective reliability of the reference pictures for prediction.
 27. The apparatus as claimed in claim 26, further comprising a transmission unit to transmit weighting factors as additional page information.
 28. The apparatus as claimed in claim 26, wherein said device divides the at least one predicted picture into at least two blocks and forms weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 29. The apparatus as claimed in claim 28, wherein said device uses a block for prediction which simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and forms a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 30. The apparatus as claimed in claim 25, wherein said device assigns weights a purely intraframe coded reference picture more highly than a predictively coded reference picture.
 31. The apparatus as claimed in claim 30, further comprising a transmission unit to transmit weighting factors as additional page information.
 32. The apparatus as claimed in claim 30, wherein said device divides the at least one predicted picture into at least two blocks and forms weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 33. The apparatus as claimed in claim 32, wherein said device uses a block for prediction which simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and forms a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels.
 34. The apparatus as claimed in claim 26, further comprising a transmission unit to transmit weighting factors as additional page information.
 36. The apparatus as claimed in claim 25, wherein said device divides the at least one predicted picture into at least two blocks, and forms weighting factors inversely based on quantization level width per block of quantizers used for coding of the reference pictures.
 36. The apparatus as claimed in claim 35, wherein said device uses a block for prediction which simultaneously superposes a plurality of coded individual blocks in a respective reference picture, and forms a weight of the block used for the prediction either from an inverse average value of the quantization level width of individual blocks or inversely with respect to a largest value of quantization levels. 